package cn.tedu.mintmall.mapper;

import cn.tedu.mintmall.entity.Reward;
import cn.tedu.mintmall.query.RewardQuery;
import cn.tedu.mintmall.vo.RewardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RewardMapper {

    // 新增打赏
    int insertReward(Reward reward);

    // 按打赏时间分页展示所有打赏信息
    List<RewardVO> findAllRewards();

    // 获取打赏金额前3名的信息按金额降序
    List<RewardVO> listByAmountTopThreeRewards();

    // 按条件搜索打赏信息
    List<RewardVO> listByCustomConditions(RewardQuery rewardQuery);

}
